package org.niu.sort;

import java.util.ArrayList;
import java.util.List;
import java.util.TreeSet;

public class Search {
    public int search (int[] nums, int target) {
        // write code here
        List<Integer> list = new ArrayList<>();
        for(int num:nums){
            list.add(num);
        }
        return list.indexOf(target);
    }
}
